(function () {
    var dpr = window.devicePixelRatio;
function resize() {
    var deviceWidth = document.documentElement.clientWidth>540?540:document.documentElement.clientWidth
    document.documentElement.style.fontSize = (deviceWidth /23.43) +'px';
}
resize();
window.onresize = resize;
})();